﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Vit.SchemaExplorer;

namespace Vit.Data
{
    public class Table<TEntity> where TEntity : EntityBase, new()
    {
        protected DataContext dataContext;
        protected TableSchema tableSchema;

        public Table(DataContext dataContext, string schemaName, string tableName)
        {
            this.dataContext = dataContext;
            tableSchema = dataContext.DatabaseSchema.GetTable(schemaName, tableName);
        }

        public TEntity Find(IEnumerable<string> columns, string where)
        {
            return null;
        }

        public List<TEntity> Query(IEnumerable<string> columns, string where, string groupby, string orderby)
        {
            return null;
        }

        public TEntity Insert(TEntity entity)
        {
            return null;
        }

        public bool Update(TEntity entity)
        {
            return false;
        }

        public bool Update(TEntity entity, IEnumerable<string> columns, string where)
        {
            return false;
        }

    }
}
